package com.zzq.guli.service.edu.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzq.guli.service.edu.entity.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author ZZQ
 * @since 2024-04-12
 */
public interface CourseMapper extends BaseMapper<Course> {

    List<CourseVo> selectPageByQuery(@Param("courseVoPage") Page<CourseVo> courseVoPage, @Param(Constants.WRAPPER) QueryWrapper<CourseQuery> courseQueryQueryWrapper);

    CoursePublishVo selectCoursePublishVoById(@Param("id") String id);

    void updateViewCountById(String id);

    WebCourseVo selectWebCourseVoById(String id);
}
